package com.ysd.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ysd.entity.Recommend;
import com.ysd.service.RecommendService;

@Controller
public class RecommendController {
		@Autowired 
		RecommendService recommendService;
		@RequestMapping("getRecommends")
		@ResponseBody
		public Object getRecommends() {
			List<Recommend> list=recommendService.FindRecommend();
			return list;
		} 
	}

